#ifndef __FORM_SPEED
#define __FORM_SPEED

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#include "HWindow.h"
#include "ozf_Base.h"
#include "HRectButton.h"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>

//---------------------------------------------------------------------------
class TSpeedForm : public TOziBaseForm {
  __published:
        TPanel *panControls;
        TTrackBar *pgColor;
        HRectButton *HRectButton1;
        HRectButton *HRectButton2;
        TPanel *panImg;
        TPaintBox *image;
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall imagePaint(TObject *Sender);
        void __fastcall pgColorChange(TObject *Sender);
        void __fastcall idColorLess(TObject *Sender);
        void __fastcall idColorMore(TObject *Sender);
        void __fastcall idOnButton(TObject *Sender,
          const PHCustomWindowBorder Border,
          const HCaptionButton_t Button);
        void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall FormKeyPress(TObject *Sender, char &Key);
  private:
  public:
    __fastcall TSpeedForm(TComponent* Owner);

    void __fastcall idPos( double Lat,double Lon,double Speed,double Head,double Mag,double Alt, int x, int y );

    DEF_PROP_VP( int,    ColorLight, ; )
    DEF_PROP_VV( double, Speed )
};

#endif
